const { lstatSync } = require('fs');

module.exports = function isDir(dir) {
  try {
    return lstatSync(dir).isDirectory();
  } catch (e) {
    return false;
  }
};